<script setup lang="ts">

</script>

<template>
<div class="itemSkeletonWrap">
  <div class="topImg">
    <el-skeleton animated>
      <template #template>
        <el-skeleton-item variant="image" style="width: 100%; height: 100%" />
      </template>
    </el-skeleton>
  </div>
  <div class="desc">
    <el-skeleton :rows="0" animated />
  </div>
</div>
</template>

<style lang="scss" scoped>
.itemSkeletonWrap {
  width: 250px;
  margin: 0 12px 12px 0;

  .topImg {
    position: relative;
    width: 100%;
    height: 135px;
    border-radius: 8px;
    margin-bottom: 8px;
  }

  .desc {
    font-size: $font-size-sm;
    font-family: $textFont;
  }
}

:deep(.el-skeleton) {
  height: 100%;
}
:deep(.el-skeleton__item) {
  width: 100%;
}

@media screen and (min-width: 1200px) {
  .itemSkeletonWrap {
    width: 23% !important;
  }
}


@media screen and (min-width: 1320px) {
  .itemSkeletonWrap {
    width: 19% !important;
  }
}
</style>
